app.factory("appAlertCreator", ["Alert", function (Alert) {

    function AppAlertCreator() {
        Alert.call(this, {
            data: {
                type: null,
                dates: {
                    creation: null,
                    delay: null
                },
                tags: [],
                articles: [{
                    content: "",
                    image: {}
                }],
                shop: {
                    category: null
                }
            }
        });
    };

    AppAlertCreator.prototype = Object.create(Alert.prototype);
    AppAlertCreator.prototype.constructor = AppAlertCreator;

    return new AppAlertCreator();

} ]);